﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<%@ Register Src="UserControls/MsgPlate.ascx" TagName="MsgPlate" TagPrefix="uc1" %>
<%@ Register Src="UserControls/ucPageFoot.ascx" TagName="ucPageFoot" TagPrefix="uc2" %>
<%@ Register Src="UserControls/ucPageHead.ascx" TagName="ucPageHead" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>网上办事（备份页面-可删除）</title>
    <script src="ScriptFile/Calendar.js" type="text/javascript"></script>
    <script src="ScriptFile/Common/Jquery.Global.js" type="text/javascript"></script>
    <script type="text/javascript">
        //打开用户注册页面
        function clickRegister() {
            window.open("UserRegister/UserReg.aspx");
        }

        function EnterKeyClick() {
            if (event.keyCode == 13) {
                event.keyCode = 9;
                event.returnValue = false;
                var btnLogin = document.getElementById('LoginButton');
                btnLogin.click();
            }
        }

        function clickUrl(strUrl) {
            window.open(strUrl);
        }

        function SetDemo2Style(flag) {
            if (flag == "0")
                demo2.style.display = "none";
            else
                demo2.style.display = "block";
        }

        //添加行政许可查询功能 add by zhongjian 20091225
        function OpenQueryXuKe() {
            var flow = document.form1.ddlFlow.selectedIndex;
            var iid = document.form1.txtIID.value;
            var name = document.form1.txtName.value;
            var fromdate = document.form1.txtFromDate.value;
            var todate = document.form1.txtToDate.value;
            var strUrl = "Wsbs/XingZhengXuKe.aspx";
            strUrl += "?flow=" + flow + "&iid=" + iid + "&name=" + name + "&fromdate=" + fromdate + "&todate=" + todate + "";
            window.open(strUrl);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="0" align="center" cellpadding="0" cellspacing="0" class="page_box">
            <tr>
                <td colspan="3">
                    <uc3:ucPageHead ID="ucPageHead1" runat="server" />
                </td>
            </tr>
            <tr>
                <td width="243" valign="top">
                    <div class="left_box_login">
                        <div class="left_bar_login">
                            用户登录</div>
                        <table style="border-color: Black;">
                            <tr>
                                <td colspan="3">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 30%;">
                                    用户名：
                                </td>
                                <td style="text-align: left;" colspan="2">
                                    <asp:TextBox ID="UserName" runat="server" Width="140" Height="16px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                        ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    密&nbsp;&nbsp;码：
                                </td>
                                <td style="text-align: left;" colspan="2">
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="140" Height="16px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                        ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    验证码：
                                </td>
                                <td style="text-align: left;">
                                    <asp:TextBox ID="txtCheckCode" runat="server" Width="65px" Height="16px"></asp:TextBox>
                                </td>
                                <td style="text-align: left;">
                                    <img alt="img" src="CheckCode.aspx" width="70px" height="22px" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3" style="text-align: center;">
                                    <asp:Button ID="LoginButton" runat="server" TabIndex="0" OnClick="LoginButton_Click"
                                        Text="登录" />
                                    <input id="btnRegister" onclick="clickRegister()" type="button" class="button" value="注册" />
                                    <br />
                                    <asp:Label ID="labMsg" runat="server" ForeColor="Red"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="page_bar02" style="margin-top: 8px; width: 245px;">
                        <div class="page_bar_ico01">
                            办件统计
                        </div>
                    </div>
                    <div class="page_right_boxSmall" style="width: 243px;">
                        <br />
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="height: 20px">
                                <td style="width: 40%; text-align: right;">
                                    <span style="color: #1467c7; text-align: left; font-size: 12px; font-weight: bold;">
                                        截至日期&nbsp;&nbsp;&nbsp;</span>
                                </td>
                                <td>
                                    <%= DateTime.Now.ToLongDateString() %>
                                </td>
                            </tr>
                            <tr style="height: 25px">
                                <td style="text-align: right;">
                                    <span style="color: #1467c7; text-align: left; font-size: 12px; font-weight: bold;">
                                        累计申报&nbsp;&nbsp;&nbsp;</span>
                                </td>
                                <td>
                                    <%= GetShoujianCount()%>件
                                </td>
                            </tr>
                            <tr style="height: 25px">
                                <td style="text-align: right;">
                                    <span style="color: #1467c7; text-align: left; font-size: 12px; font-weight: bold;">
                                        累计办结&nbsp;&nbsp;&nbsp;</span>
                                </td>
                                <td>
                                    <%= GetBanjieCount()%>件
                                </td>
                            </tr>
                        </table>
                    </div>
                    <img src="App_Themes/SkinFile/Images/page_left_button01.gif" alt="" class="left_img"
                        onclick="clickUrl('wsbs/Lyzx.aspx');" border="0" />
                    <img src="App_Themes/SkinFile/Images/page_left_button02.gif" alt="" class="left_img1"
                        onclick="clickUrl('wsbs/Fwfk.aspx');" border="0" />
                </td>
                <td width="530" valign="top">
                    <div class="page_bar">
                        <div class="page_bar_ico04">
                            行政许可事项
                        </div>
                    </div>
                    <%=BindXzxk()%>
                </td>
                <td width="224" valign="top">
                    <div class="page_bar02" style="margin-top: 8px;">
                        <div class="page_bar_ico02">
                            信息公告
                        </div>
                    </div>
                    <div class="page_right_box">
                        <div style="margin-top: 8px; margin-left: 8px;">
                            <uc1:MsgPlate runat="server" ID="msgXxgg" />
                        </div>
                        <div class="page_more">
                            <a href="Wsbs/DetailOtherList.aspx?type=0" target="_blank">更多...</a>
                        </div>
                    </div>
                    <div class="page_bar02" style="margin-top: 8px;">
                        <div class="page_bar_ico05">
                            留言咨询
                        </div>
                    </div>
                    <div class="page_right_box">
                        <ul class="page_bar_ul" style="margin-left: 0px; padding-left: 0px;">
                            <%=BindLyzx()%>
                        </ul>
                        <div class="page_more">
                            <a href="Wsbs/LyzxList.aspx" target="_blank">更多...</a>
                        </div>
                    </div>
                    <div class="page_bar02" style="margin-top: 8px;">
                        <div class="page_bar_ico03">
                            常见问题
                        </div>
                    </div>
                    <div class="page_right_box" style="margin-bottom: 8px;">
                        <ul class="page_bar_ul" style="margin-left: 0px; padding-left: 0px;">
                            <%=BindQuestion()%>
                        </ul>
                        <div class="page_more">
                            <a href="Wsbs/DetailOtherList.aspx?type=1" target="_blank">更多...</a>
                            <br />
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center" valign="top">
                    <div class="end_bar">
                        行政许可公示
                    </div>
                    <table bordercolor="#4fbff9" cellspacing="0" bordercolordark="#eaf0ff" cellpadding="1"
                        width="1000" align="center" bordercolorlight="#5eb4e1" border="1" style="font-weight: bold;
                        font-size: larger; color: Dodgerblue;">
                        <tr style="display: none">
                            <td colspan="6">
                                <div class="page_bar01">
                                    <div class="tdbox">
                                        受理编号
                                        <asp:TextBox ID="txtIID" runat="server" Width="90px"></asp:TextBox>
                                        办理事项<asp:DropDownList ID="ddlFlow" runat="server" Width="240px">
                                        </asp:DropDownList>
                                        申请单位<asp:TextBox ID="txtName" runat="server" Width="90px"></asp:TextBox>
                                        申请日期(从)
                                        <input onfocus="setday(this)" id="txtFromDate" runat="server" readonly="readonly"
                                            size="10" />
                                        到
                                        <input onfocus="setday(this)" id="txtToDate" runat="server" readonly="readonly" size="10" />
                                        <input id="btnQuery" type="button" value="查询" onclick="OpenQueryXuKe()" />
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr align="center" bgcolor="#dcedf6">
                            <td width="10%" height="20">
                                受理编号
                            </td>
                            <td width="25%" height="20">
                                办理事项
                            </td>
                            <td width="36%" height="20">
                                申请单位
                            </td>
                            <td width="8%">
                                办件状态
                            </td>
                            <td width="10%">
                                申请日期
                            </td>
                            <td width="10%">
                                应办结日期
                            </td>
                        </tr>
                    </table>
                    <div id="demo">
                        <div id="demo1">
                            <defineControls:CustomGridView ID="dgXkjggs" runat="server" AllowPaging="false" AutoGenerateColumns="false"
                                ShowItemNumber="false" SkinID="List" CheckboxAutoPostBack="False" CustomImportToExcel="false"
                                CustomSortExpression="" DeleteToolTipOfCol="-1" HideTextLength="20" ShowCmpAndCancel="False"
                                ShowGridViewSelect="List" ShowHideColModel="None" ShowImportButton="False" ShowTreeView="False"
                                SelectOrDelete="True" AllowSortingAscImgCss="" AllowSortingDescImgCss="" Width="1000"
                                OnOnLoadData="dgXkjggs_OnLoadData" ShowHeader="false">
                                <Columns>
                                    <asp:BoundField DataField="受理编号" HeaderText="受理编号" ItemStyle-Width="10%" ItemStyle-Height="20px" />
                                    <asp:BoundField DataField="受理事项" HeaderText="办理事项" ItemStyle-Width="25%" />
                                    <asp:BoundField DataField="申请单位" HeaderText="申请单位" ItemStyle-Width="36%" />
                                    <asp:BoundField DataField="办件状态" HeaderText="办件状态" ItemStyle-Width="8%" />
                                    <asp:BoundField DataField="申请日期" HeaderText="申请日期" ItemStyle-Width="10%" />
                                    <asp:BoundField DataField="应办结日期" HeaderText="应办结日期" ItemStyle-Width="10%" />
                                </Columns>
                            </defineControls:CustomGridView>
                        </div>
                        <div id="demo2">
                        </div>
                    </div>
                    <script type="text/javascript">
                        scrollText();
                    </script>
                    <asp:HiddenField ID="hfWorkPower" runat="server" Value="" />
                    <uc2:ucPageFoot ID="ucPageFoot1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
